<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Title</title>
  <script src="https://cdn.bootcss.com/axios/0.19.0-beta.1/axios.js"></script>
  <script>
    axios.defaults.withCredentials = true
    let baseConfig = {
      withCredentials: true,
      transformRequest: [function (data) {
        if (data instanceof FormData) {
          return data
        } else {
          return qs.stringify(data, {
            allowDots: true
          })
        }
      }],
      headers: {
        'Accept': 'application/json',
        'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8'
      }

    }
    var ajax = axios.create(baseConfig)
    ajax.post('http://192.168.1.253:80/api/sys/login', {username: 'admin', password: 'admin'}).then((res) => {
      console.log(res)
    })
  </script>
</head>
<body>

</body>
</html>
